import http from '../axios'

export default {
  getList(paramObj) {
    return http('get', '/api/order/getList', paramObj);
  },
  getDetail(id) {
    return http('get', '/api/order/getDetail', { id: id });
  },
  refund(id) {
    return http('post', '/api/order/refund', { id: id });
  },
  deliverProduct(id) {
    return http('post', '/api/order/deliverProduct', { id: id });
  },
  createOrder(order) {
    return http('post', '/api/order/createOrder', order, 'json');
  }
}